package com.qilin.hammer;

import java.io.File;
import java.net.MalformedURLException;
import java.util.Calendar;

public class PXTest {

	
	public static void getDateFromMillis(Long value){
		Calendar c = Calendar.getInstance();
		c.setTimeInMillis(value);
		System.out.println(c.getTime());
	}
	
	public static void getTimeFromDate(int y, int m, int d, int h, int min, int s){
		Calendar c = Calendar.getInstance();
		c.set(y, m-1, d, h, min, s);
		System.out.println(c.getTime());
		System.out.println(c.getTimeInMillis());
	}
	
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		
		PXTest.getDateFromMillis(1347632100000L);

	}

}
